/config/users/<user_name>/authentication/password¶
The nodes below this one perform the functions described in this function overview.
Use
Use to configure or change the password.
If no password is set, then password authentication is disabled.
If you include characters other than letters (upper or lower), digits, dashes, and periods in a password, you must put double quotes around it.
Normally, you should use the clear form of the password, and the system encrypts the password. You can see the encrypted password the following ways:
- CLI command–show run
- REST API–/config/users/<user_name>/authentication/password/hash5
Use the encrypted form of the password only when you need to use an existing password on another system. You can copy the encrypted password from the show run output or from the /status/config/running node, then paste it into the encrypted form of the command on another system.
Request Methods¶
GET
Examples¶
GET
curl -b cookie.jar -k https://10.1.2.3:8443/lrs/api/v1.0/config/users/admin/authentication/password
GET Response
{"/config/users/admin/authentication/password": {"data": None,
"default": False,
"defaultAllowed": False,
"deleteAllowed": False,
"numChildren": 2,
"redacted": False,
"sensitive": False,
"type": "subtree"},
"httpResponseCode": 200,
"recurse": False,
"requestPath": "/config/users/admin/authentication/password"}
- /config/users/<user_name>/authentication/password
1. Parameters
- Data Type
- Default Data Value 2. Request Methods 3. Related 4. Examples